package com.example.controller;

import com.example.service.NovelService;
import com.example.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
@RestController
@RequestMapping("/novel")
public class NovelController {

    @Resource
    private NovelService novelService;

    @GetMapping("/totaltui")
    public R<List> totaltui(){
        List list = new ArrayList<>();
        list = novelService.totaltui();
        return R.success(list);
    }

    @GetMapping("/reward")
    public R<List> reward(){
        List list = new ArrayList<>();
        list = novelService.reward();
        return R.success(list);
    }

    @GetMapping("/writeday")
    public R<List> writeday(){
        List list = new ArrayList<>();
        list = novelService.writeday();
        return R.success(list);
    }

    @GetMapping("/state")
    public R<List> state(){
        List list = new ArrayList<>();
        list = novelService.state();
        return R.success(list);
    }

    @GetMapping("/leiji")
    public R<List> leiji(){
        List list = new ArrayList<>();
        list = novelService.leiji();
        return R.success(list);
    }

    @GetMapping("/monthvote")
    public R<List> monthvote(){
        List list = new ArrayList<>();
        list = novelService.monthvote();
        return R.success(list);
    }


    @GetMapping("/week")
    public R<List> week(){
        List list = new ArrayList<>();
        list = novelService.week();
        return R.success(list);
    }

    @GetMapping("/type1")
    public R<List> tpye1(){
        List list = new ArrayList<>();
        list = novelService.type1();
        return R.success(list);
    }

    @GetMapping("/type2")
    public R<List> tpye2(){
        List list = new ArrayList<>();
        list = novelService.type2();
        return R.success(list);
    }

    @GetMapping("/weektui")
    public R<List> weektui(){
        List list = new ArrayList<>();
        list = novelService.weektui();
        return R.success(list);
    }

    @GetMapping("/novelcount")
    public R<List> novelcount(){
        List list = new ArrayList<>();
        list = novelService.novelcount();
        return R.success(list);
    }

    @GetMapping("/bili1")
    public R<List> bili1(){
        List list = new ArrayList<>();
        list = novelService.bili1();
        return R.success(list);
    }

    @GetMapping("/bili2")
    public R<List> bili2(){
        List list = new ArrayList<>();
        list = novelService.bili2();
        return R.success(list);
    }

    @GetMapping("/fenlei")
    public R<List> fenlei(){
        List list = new ArrayList<>();
        list = novelService.fenlei();
        return R.success(list);
    }

    @GetMapping("/bili3")
    public R<List> bili3(){
        List list = new ArrayList<>();
        list = novelService.bili3();
        return R.success(list);
    }

    @GetMapping("/bili4")
    public R<List> bili4(){
        List list = new ArrayList<>();
        list = novelService.bili4();
        return R.success(list);
    }

    @GetMapping("/fenxi")
    public R<List> fenxi(){
        List list = new ArrayList<>();
        list = novelService.fenxi();
        return R.success(list);
    }

    @GetMapping("/fenxi2")
    public R<List> fenxi2(){
        List list = new ArrayList<>();
        list = novelService.fenxi2();
        return R.success(list);
    }

    @GetMapping("/bili5")
    public R<List> bili5(){
        List list = new ArrayList<>();
        list = novelService.bili5();
        return R.success(list);
    }


    @GetMapping("/fenxi3")
    public R<List> fenxi3(){
        List list = new ArrayList<>();
        list = novelService.fenxi3();
        return R.success(list);
    }

    @GetMapping("/fenxi4")
    public R<List> fenxi4(){
        List list = new ArrayList<>();
        list = novelService.fenxi4();
        return R.success(list);
    }

    @GetMapping("/fenxi5")
    public R<List> fenxi5(){
        List list = new ArrayList<>();
        list = novelService.fenxi5();
        return R.success(list);
    }

    @GetMapping("/fenxi6")
    public R<List> fenxi6(){
        List list = new ArrayList<>();
        list = novelService.fenxi6();
        return R.success(list);
    }

    @GetMapping("/xuanhuan")
    public R<List> xuanhuan(){
        List list = new ArrayList<>();
        list = novelService.xuanhuan();
        return R.success(list);
    }

    @GetMapping("/xianxia")
    public R<List> xianxia(){
        List list = new ArrayList<>();
        list = novelService.xianxia();
        return R.success(list);
    }

    @GetMapping("/lishi")
    public R<List> lishi(){
        List list = new ArrayList<>();
        list = novelService.lishi();
        return R.success(list);
    }

    @GetMapping("/gudai")
    public R<List> gudai(){
        List list = new ArrayList<>();
        list = novelService.gudai();
        return R.success(list);
    }

    @GetMapping("/kehuan")
    public R<List> kehuan(){
        List list = new ArrayList<>();
        list = novelService.kehuan();
        return R.success(list);
    }

    @GetMapping("/wuxia")
    public R<List> wuxia(){
        List list = new ArrayList<>();
        list = novelService.wuxia();
        return R.success(list);
    }

    @GetMapping("/yanqing")
    public R<List> yanqing(){
        List list = new ArrayList<>();
        list = novelService.yanqing();
        return R.success(list);
    }

}